﻿// Decompiled with JetBrains decompiler
// Type: Netick.SimulationInput
// Assembly: Netick, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 6726ECA1-C773-4CF7-8952-E81B30D93B52
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.dll
// XML documentation location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.xml

using System.Collections.Generic;

#nullable disable
namespace Netick;

public sealed class SimulationInput
{
  internal List<InputBlock> Inputs = new List<InputBlock>(4);
  internal Tick TargetTick;
  public Tick SrvTick;
  public float Alpha;
  internal bool IsDuplicated;
  internal bool Ignore;
  internal double ReceiveTime;
  internal double CreationTime;

  internal void AddInput(InputBlock input) => this.Inputs.Add(input);

  internal void Reset()
  {
    this.Inputs.Clear();
    this.IsDuplicated = false;
    this.Ignore = false;
    this.SrvTick = Tick.InvalidTick;
    this.TargetTick = Tick.InvalidTick;
  }
}
